package com.dog.basics.bean.dto.admin.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @description: 添加用户信息
 * @author: He
 * @date: Created in 2020/5/18 14:16
 * @version: 1.0
 * @modified By:
 */
@Data
@ApiModel(value = "添加用户信息")
public class UserAddDto {


    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称",dataType = "String")
    @Size(min = 1,max = 25,message = "昵称最大小长度(1-25)")
    private String nickName;

    /**
     * 真实姓名
     */
    @ApiModelProperty(value = "真实姓名",dataType = "String",required = true)
    @NotBlank(message = "真实姓名不能为空")
    @Size(min = 1,max = 25,message = "真实姓名最大小长度(1-25)")
    private String realName;


    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码",dataType = "String",required = true)
    @NotBlank(message = "手机号码不能为空")
    @Size(min = 11,max = 11,message = "手机号码长度11位哦")
    private String userMobile;



    /**
     * 备注
     */
    @ApiModelProperty(value = "备注",dataType = "String")
    @Size(min = 1,max = 500,message = "备注长度最大为500")
    private String userMemo;

    /**
     * 消息提醒: 0 - 开启 1-关闭
     */
    @ApiModelProperty(value = "消息提醒 (0 - 开启 1-关闭)",dataType = "Integer",example = "默认 0 开启消息")
    private Integer newsRemind;




}